<!--
 * @Description: 
 * @Author: zgh
 * @Date: 2023-05-09 14:19:25
 * @FilePath: \web\jichuangwan\test.html
 * @LastEditTime: 2023-05-09 15:20:40
 * @LastEditors: zgh
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/jquery-3.6.0.js"></script>
  <style>
   
  </style>
</head>

<body>
  <div class="green"></div>
  <div class="yellow"></div>
  <div class="red"></div>
</body>
<script>
  async function test(){
    let res = await new Promise((resolve , reject) =>{
      resolve('yes') 
    }).then((res)=>{
      return 'then'
      console.log("then "+res);
    })

    console.log(res);
  }
  test()
</script>

</html>